all: run

clean:
	rm -f *~ *.o roll test test.cpp ../../*.o test.log.* debug.log

BOOST_INCLUDE = /usr/include/boost-1_33_1/

SRC_PATH = ../../equalities
SRC_PATH1 = ../../smatrix
SRC_PATH2 = ../../inequlities

CXXTEST = $(HOME)/tools/cxxtest
CCFLAGS = -I. -I.. -I../../ -I$(SRC_PATH) -I$(SRC_PATH1)  -I$(SRC_PATH2) -I$(CXXTEST) -I$(BOOST_INCLUDE)   -fPIC -O2 -DNDEBUG -DBOOST_MATRIX
#CCFLAGS = -I. -I.. -I../../ -I$(SRC_PATH) -I$(SRC_PATH1)  -I$(SRC_PATH2) -I$(CXXTEST) -I$(BOOST_INCLUDE)   -fPIC -ggdb -fno-inline -Wall -DDEBUG -DDEBUG_ELIM_SUBST_INQ 
#-DBOOST_MATRIX
# -DUSE_RATIONAL
LDFLAGS = -L../.. -lboost_date_time -L /usr/local/lib/
run: test
	time ./test

test: test.o 
	g++ -o $@ $^ $(CCFLAGS) $(LDFLAGS)

.cpp.o:
	g++ -c -o $@ $(CCFLAGS) $<

test.cpp: ineqs_suite.h
	$(CXXTEST)/cxxtestgen.pl -o $@ --error-printer $<
